<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>操作数组之查和改</title>
</head>

<body>
  <script>
    // 1. 查询数组元素
    // 2. 修改数组元素   数组[索引] = 新值
    let arr = ['迪丽热巴','xpp','ccc','sss','aaa']
    arr[2]='lala'
    console.log(arr)
    
  </script>
</body>

</html>